package tt.lab.pmbok.model;

import org.codehaus.jackson.annotate.JsonIgnore;

public class ProcessInout implements Comparable<ProcessInout>{
	private int id;
	private PmbokProcess process;
	
	private Inout inout;
	private String type;
	public void setProcess(PmbokProcess process) {
		this.process = process;
	}
	@JsonIgnore
	public PmbokProcess getProcess() {
		return process;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getId() {
		return id;
	}

	public void setInout(Inout inout) {
		this.inout = inout;
	}

	public Inout getInout() {
		return inout;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getType() {
		return type;
	}

	public int compareTo(ProcessInout o) {
		if(this.id>o.id) return 1;
		else if (this.id<o.id) return -1;
		else return 0;
	}

}
